import 'package:flutter/material.dart';

class PageScroller extends StatefulWidget {
  PageScroller({Key? key, required this.text}) : super(key: key);

  final String text;

  @override
  State<PageScroller> createState() => _PageState();
}

class _PageState extends State<PageScroller> {
  @override
  Widget build(BuildContext context) {
    print("build ${widget.text}");
    return Center(
      child: Text(
        "${widget.text}",
        textScaleFactor: 5,
      ),
    );
  }
}
